{% extends "user/common.html" %}

{% block title %}用户个人中心{% endblock %}

{% block head %}
    <link rel="stylesheet" type="text/css" href="{{ url_for("static", filename="css/user/center.css") }}">
{% endblock %}

{% block body %}
    <header>
        <h1>个人中心</h1>
    </header>
    <footer>
        <div>
            <img src="{{ user.avatar_url }}" alt="image" class="touxiang">
        </div>
        <div class="info">
            <div class="item username">用户名：{{ user.username }}</div>
            <div class="item email">邮箱：{{ user.email }}</div>
            {% if user.sex == 0 %}
                <div class="item sex">性别：男</div>
            {% elif user.sex == 1 %}
                <div class="item sex">性别：女</div>
            {% else %}
                <div class="item sex">性别：暂未设置</div>
            {% endif %}
            <div class="item age">年龄：{{ user.age }}</div>
            <button class="item btn">修改个人信息</button>
        </div>
    </footer>
{% endblock %}